//
//  QuestionAnswer.m
//  HotWord
//
//  Created by iPhuan on 13-4-1.
//
//

#import "QuestionAnswer.h"

@implementation QuestionAnswer

- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.nickName forKey:@"nickName"];
	[aCoder encodeObject:self.avater forKey:@"avater"];
	[aCoder encodeObject:self.introduce forKey:@"introduce"];
	[aCoder encodeObject:self.content forKey:@"content"];
    [aCoder encodeObject:self.timestamp forKey:@"timestamp"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.nickName = [aDecoder decodeObjectForKey:@"nickName"];
		self.avater = [aDecoder decodeObjectForKey:@"avater"];
		self.introduce = [aDecoder decodeObjectForKey:@"introduce"];
		self.content = [aDecoder decodeObjectForKey:@"content"];
        self.timestamp = [aDecoder decodeObjectForKey:@"timestamp"];
    }
	return self;
}

-(void)dealloc
{
    [_nickName release];
    [_avater release];
    [_introduce release];
    [_content release];
    [_timestamp release];
    [super dealloc];
}


@end
